use yew::{function_component, html, Html};
use yew_router::BrowserRouter;
use crate::business::layout::main_layout::RootLayout;
use crate::business::websocket::heart_check::HeartCheck;
use crate::business::websocket::receive_send_view::ReceiveSendDataView;

#[function_component(App)]
pub fn app()-> Html {
    html! {
        <ReceiveSendDataView>
            <HeartCheck interval_time={ 25000 }/>

            <BrowserRouter>
                <RootLayout/>
            </BrowserRouter>
        </ReceiveSendDataView>
    }
}